<?php
/**
 *  StorableObject class unit tests
 *
 *  @author Jean-Lou Dupont
 *  @version @@package-version@@
 */

require_once 'PHPUnit/Framework.php';
require_once 'web-bloks/BaseClass/BaseClass.php';
require_once 'TestClass.php';

class UnitTest extends PHPUnit_Framework_TestCase
{

    public function test1()
    {
    	$obj = new TestClass;
		
		#echo $obj->getClassPath()."\n";
		
		// Assert that the size of the Array fixture is 1.
        $this->assertEquals(true, is_string( $obj->getClassPath() ));
    }
	public function testException()
	{
		$result = false;
		
		try
		{
	    	$obj = new TestClass;				
			$obj->testException();
		}
		catch( TestClass_Exception $e )
		{
			$result = true;
		}
		catch( Exception $e )
		{
			$result = false;	
		}
        $this->assertEquals(true, $result );		
	}

}